<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>我的空间 | 生活记录</title>
	<link rel="stylesheet" href="../css/nav.css">
    <link rel="stylesheet" href="../css/index.css" >
	<link rel="stylesheet" href="../css/base.css" />
	<link rel="stylesheet" href="../css/food.css" />
</head>

<body>
        <div class="nav">
                <img src="../img/头像.jpg" alt="logo 图">
                <span class="title">个人空间</span>
                <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
            <a href="information.html" ><p>个人信息</p></a>
            <a href="interest.html"><p>兴趣爱好</p></a>
            <a href="food.html" ><p>生活记录</p></a>
            <a href="trip.html" ><p>我的相册</p></a>
            <a href="music.html" ><p>我的歌单</p></a>
            <a href="../index.html" ><p>返回首页</p></a>
            <a href="../welcome.html" ><p>返回首页</p></a>
            </div>       

	<div id="main">
		<div class="foods">
			<div class="title">
				<h2>美&nbsp;.&nbsp;食</h2>
				<p>喜欢的食物</p>
			</div>
			<div class="content">
				<div class="box">
					<img src="../img/food1.jpg" width="245px" height="120px">
					<div class="discribe">
						<h3>芝士</h3>
						<p>芝士就是力量！！！<br />
                        要做一个优秀的芝士份子
						</p>
					</div>
				</div>
				<div class="box" style="margin: 0 32px;">
					<img src="../img/food2.jpg" width="245px" height="245px">
					<div class="discribe">
						<h3>泡面</h3>
						<p>泡面需要三分钟<br />
						泡我只需要一句，在吗
						</p>
					</div>
				</div>
				<div class="box">
					<img src="../img/food3.jpg" width="245px" height="160">
					<div class="discribe">
						<h3>蒜蓉酱</h3>
						<p>终于拿到了烧烤店秘制蒜蓉酱的配方，好吃的蒜蓉酱学会了就等于拥有了蒜蓉的一切可能
						</p>
					</div>
				</div>
			</div>
		</div>

		<div class="life">
			<div class="title">
				<div class="line"></div>
				<h2>生&nbsp;.&nbsp;活</h2>
				<p>课后生活</p>
			</div>
			<div class="view">
				<div class="smallView">
					<img src="../img/life1.jpg" width="90px" height="90px" />
					<p><span>游戏</span><br />
						古语有云：三天不玩，脑袋爆炸；两天不碰，蚂蚁在爬。适度游戏益脑，过度游戏伤身。
					</p>
				</div>
				<div class="smallView">
					<img src="../img/life2.jpg" width="90px" height="90px" />
					<p><span>睡觉</span><br />
						床不会问问题，床不会批评你，床又软又暖和，床永远都在那里等你，床真好。
					</p>
				</div>
				<div class="smallView">
					<img src="../img/life3.jpg" width="90px" height="90px" />
					<p><span>旅行</span><br />
						朋友圈一句青春没有售价，我一脚踏出门在景区被挤得不上不下。
					</p>
				</div>
				<div class="smallView">
					<img src="../img/life4.jpg" width="90px" height="90px" />
					<p><span>干饭</span><br />
						减肥出尔反尔，干饭言出必行。任何时间，任何地点，超级侦探，认真干饭。
					</p>
				</div>
			</div>
		</div>

	</div>

	<div id="footer">
		<p>
			<a href="index.html">个人信息</a><span>|</span>
			<a href="interest.html">兴趣爱好</a><span>|</span>
			<a href="trip.html">背包旅行</a><span>|</span>
			<a href="music.html">音乐歌单</a>
		</p>
        <p>© 2023 By <a href="../index.html" >Sukie</a>.</p>
	</div>
<audio 
	autoplay="autoplay"
   	controls="controls"
  	loop="loop"
  	preload="auto"
  	src="../music/山鬼.mp3">
</audio>
</body>
    <script>
        //鼠标点击出现爱心特效  这部分特效是从一个网页搬过来的  觉得挺好看的
        (function (window, document, undefined) {
            var hearts = [];
            window.requestAnimationFrame = (function () {
                return window.requestAnimationFrame ||
				window.webkitRequestAnimationFrame ||
				window.mozRequestAnimationFrame ||
				window.oRequestAnimationFrame ||
				window.msRequestAnimationFrame ||
				function (callback) {
				    setTimeout(callback, 1000 / 60);
				}
            })();
            init();
            function init() {
                css(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
                attachEvent();
                gameloop();
            }
            function gameloop() {
                for (var i = 0; i < hearts.length; i++) {
                    if (hearts[i].alpha <= 0) {
                        document.body.removeChild(hearts[i].el);
                        hearts.splice(i, 1);
                        continue;
                    }
                    hearts[i].y--;
                    hearts[i].scale += 0.004;
                    hearts[i].alpha -= 0.013;
                    hearts[i].el.style.cssText = "left:" + hearts[i].x + "px;top:" + hearts[i].y + "px;opacity:" + hearts[i].alpha + ";transform:scale(" + hearts[i].scale + "," + hearts[i].scale + ") rotate(45deg);background:" + hearts[i].color;
                }
                requestAnimationFrame(gameloop);
            }
            function attachEvent() {
                var old = typeof window.onclick === "function" && window.onclick;
                window.onclick = function (event) {
                    old && old();
                    createHeart(event);
                }
            }
            function createHeart(event) {
                var d = document.createElement("div");
                d.className = "heart";
                hearts.push({
                    el: d,
                    x: event.clientX - 5,
                    y: event.clientY - 5,
                    scale: 1,
                    alpha: 1,
                    color: randomColor()
                });
                document.body.appendChild(d);
            }
            function css(css) {
                var style = document.createElement("style");
                style.type = "text/css";
                try {
                    style.appendChild(document.createTextNode(css));
                } catch (ex) {
                    style.styleSheet.cssText = css;
                }
                document.getElementsByTagName('head')[0].appendChild(style);
            }
            function randomColor() {
                return "rgb(" + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + ")";
            }
        })(window, document);
    </script>


</html>